package com.pay.ioopos.support.serialport.custom;

public interface SerialPortPayer {

    void cancel(CancelState state, String detail);

    void pay(PayState fail, String amount, String detail);

    enum PayState {
        NEW, PAYING, PWD, CANCEL, SUCCESS, FAIL, EXPIRED, ERROR
    }

    enum CancelState {
        CANCELING, SUCCESS, FAIL
    }
}
